package org.jeecg.modules.demo.crm.mapper;

import java.math.BigDecimal;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.crm.entity.CReimbursement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 报销表
 * @Author: jeecg-boot
 * @Date:   2025-06-20
 * @Version: V1.0
 */
public interface CReimbursementMapper extends BaseMapper<CReimbursement> {

    @Select("select IFNULL(sum(amount),0)  from c_reimbursement where project_id = #{projectId}")
    BigDecimal reimbursement(@Param("projectId") String projectId);
}
